<?php
include('global.php');
include('common/access_count.php');
$sql = "SELECT `userid`,`avatar`,`rank_score` FROM `renren_hunauhomeurl` WHERE `status` = 1 ORDER BY rand() LIMIT 2";
$query = $db->query($sql);
while($row = $db->fetch_array($query)){$data[] = array('userid'=>$row['userid'],'avatar'=>$row['avatar'],'rank_score'=>$row['rank_score']);}
include('templates/index.html');
?>